const mysql = require('mysql2/promise')

const pool = mysql.createPool({
  // host: '36.133.123.57',
  host: '127.0.0.1',
  user: 'root',
  password: 'AaVvHh_852',
  database: 'to_do',
  timezone: '+08:00', // 设置时区为东八区
  port: 3306,
  charset: 'UTF8_GENERAL_CI'
})

module.exports = pool
